/* eslint-disable no-unused-vars */
import Mock from 'mockjs'

const mock = Mock.mock

export default [
  {
    url: '/api/staff/staff',
    type: 'get',
    response: (config) => {
      return mock({
        code: 200,
        data: {
          page: 1,
          limit: 20,
          total: 222,
          'list|20': [
            {
              'name|1': ['张三', '李四', '王五', '赵六', '田七'],
              phone: '@integer(100000000, 200000000)',
              id: '@id',
              'sex|1-2': 1,
              'role|1-2': 1,
              'post|1-4': 1,
              dailyWage: 260,
              'status|1-2': 2,
              'dept|1': ['一组', '二组'],
              createTime: '@datetime("yyyy-MM-dd HH:mm:ss")'
            }
          ]
        },
        message: 'success'
      })
    }
  },
  {
    url: '/api/staff/submitted',
    type: 'get',
    response: (config) => {
      return mock({
        code: 200,
        data: {
          page: 1,
          limit: 20,
          total: 222,
          'list|20': [
            {
              'name|1': ['张三', '李四', '王五', '赵六', '田七'],
              phone: '@integer(100000000, 200000000)',
              id: '@id',
              subDailyWage: 260,
              actualDailyWage: 290,
              diffDailyWage: 30,
              'status|1-2': 2,
              createTime: '@datetime("yyyy-MM-dd HH:mm:ss")'
            }
          ]
        },
        message: 'success'
      })
    }
  },
  {
    url: '/api/staff/manHour',
    type: 'get',
    response: (config) => {
      return mock({
        code: 200,
        data: {
          page: 1,
          limit: 20,
          total: 222,
          'list|20': [
            {
              'name|1': ['张三', '李四', '王五', '赵六', '田七'],
              month1: 10,
              month2: 10,
              month3: 10,
              month4: 10,
              month5: 10,
              month6: 10,
              month7: 0,
              month8: 0,
              month9: 0,
              month10: 0,
              month11: 0,
              month12: 0,
              total: 60,
              id: '@id',
              'status|1-2': 2,
              createTime: '@datetime("yyyy-MM-dd HH:mm:ss")'
            }
          ]
        },
        message: 'success'
      })
    }
  },
  {
    url: '/api/upload/manHour',
    type: 'get',
    response: (config) => {
      return mock({
        code: 200,
        data: {
          total: 222
        },
        message: 'success'
      })
    }
  }
]
